---
layout: m1x_soap
title: Attribute Remove
---

<h3><a name="product_attribute.remove-Module%3AProductAttributesAPI"></a>Module: Product Attributes API</h3>

<h4><a name="product_attribute.remove-Resource%3Aproductattribute"></a>Resource: product_attribute</h4>


<h5><a name="product_attribute.remove-Method%3A"></a>Method:</h5>

<ul>
	<li>product_attribute.remove (SOAP V1)</li>
	<li>catalogProductAttributeRemove (SOAP V2)</li>
</ul>


<p>Allows you to remove the required attribute from a product.</p>

<p><b>Arguments:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> string </td>
<td> sessionId <br class="atl-forced-newline" /> </td>
<td> Session ID </td>
</tr>
<tr>
<td> string </td>
<td> attribute </td>
<td> Attribute code or ID </td>
</tr>
</tbody></table>


<p><b>Return:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Description </th>
</tr>
<tr>
<td> boolean </td>
<td> True if the attribute is removed </td>
</tr>
</tbody></table>


<p><b>Faults:</b></p>


<table><tbody>
<tr>
<th> Fault Code </th>
<th> Fault Message </th>
</tr>
<tr>
<td> 101 </td>
<td> Requested attribute not found. </td>
</tr>
<tr>
<td> 106 </td>
<td> This attribute cannot be deleted. </td>
</tr>
</tbody></table>



<h4><a name="product_attribute.remove-Examples"></a>Examples</h4>

<h5><a name="product_attribute.remove-RequestExampleSOAPV1"></a>Request Example SOAP V1</h5>


<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/soap/?wsdl');
$sessionId = $proxy-&gt;login('apiUser', 'apiKey');

$attributeCode = "11";

$result = $proxy-&gt;call(
    $sessionId,
    "product_attribute.remove",
    array(
         $attributeCode
    )
);</pre>
		</div>
</div></div>

<h5><a name="product_attribute.remove-RequestExampleSOAPV2"></a>Request Example SOAP V2</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy-&gt;login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary

$result = $proxy-&gt;catalogProductAttributeRemove($sessionId, '11');
var_dump($result);</pre>
		</div>
</div></div>

<h5><a name="product_attribute.remove-RequestExampleSOAPV2%28WSIComplianceMode%29"></a>Request Example SOAP V2 (WS-I Compliance Mode)</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$client = new SoapClient('http://magentohost/api/v2_soap/?wsdl');

$session = $client-&gt;login((object)array('username' =&gt; 'apiUser', 'apiKey' =&gt; 'apiKey'));

$result = $client-&gt;catalogProductAttributeRemove((object)array('sessionId' =&gt; $session-&gt;result, 'attribute' =&gt; '11'));

var_dump ($result);</pre>
		</div>
</div></div>


